<?
include"../cek.php";
include"../sambung.php";
if($act=="del"){
$del=mysql_query("delete from data_karyawan where id='$id'");
}else{
$add=mysql_query("UPDATE data_karyawan set nama='$nama' , nik='$nik_baru' , tingkat='$tingkat' , jabatan='$jabatan' ,
posisi='$posisi' , nik_atasan='$nik_atasan' , nik_support='$nik_support' , status='$status' , hak_akses= '$akses', besar='$besar' , th2004='$th2004' , th2005='$th2005' , th2006='$th2006' , password='$pass' where id='$id'");
}
header("location:./data_karyawan.php");
?>